<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Doxygen: pcl::FileGrabber&lt; PointT &gt; 模板类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Doxygen
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('classpcl_1_1_file_grabber.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="classpcl_1_1_file_grabber-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">pcl::FileGrabber&lt; PointT &gt; 模板类 参考<span class="mlabels"><span class="mlabel">abstract</span></span></div>  </div>
</div><!--header-->
<div class="contents">

<p><a class="el" href="classpcl_1_1_file_grabber.html" title="FileGrabber provides a container-style interface for grabbers which operate on fixed-size input">FileGrabber</a> provides a container-style interface for grabbers which operate on fixed-size input  
 <a href="classpcl_1_1_file_grabber.html#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="file__grabber_8h_source.html">file_grabber.h</a>&gt;</code></p>
<div class="dynheader">
类 pcl::FileGrabber&lt; PointT &gt; 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classpcl_1_1_file_grabber.png" usemap="#pcl::FileGrabber_3C_20PointT_20_3E_map" alt=""/>
  <map id="pcl::FileGrabber_3C_20PointT_20_3E_map" name="pcl::FileGrabber_3C_20PointT_20_3E_map">
<area href="classpcl_1_1_image_grabber.html" alt="pcl::ImageGrabber&lt; PointT &gt;" shape="rect" coords="0,56,174,80"/>
<area href="classpcl_1_1_p_c_d_grabber.html" alt="pcl::PCDGrabber&lt; PointT &gt;" shape="rect" coords="184,56,358,80"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:adb6fce6f3c3b8f358e38250340c389d7"><td class="memItemLeft" align="right" valign="top"><a id="adb6fce6f3c3b8f358e38250340c389d7"></a>
virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_file_grabber.html#adb6fce6f3c3b8f358e38250340c389d7">~FileGrabber</a> ()</td></tr>
<tr class="memdesc:adb6fce6f3c3b8f358e38250340c389d7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Empty destructor <br /></td></tr>
<tr class="separator:adb6fce6f3c3b8f358e38250340c389d7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a89929617bdc7df84486a66041b288db0"><td class="memItemLeft" align="right" valign="top">virtual const boost::shared_ptr&lt; const <a class="el" href="classpcl_1_1_point_cloud.html">pcl::PointCloud</a>&lt; <a class="el" href="structpcl_1_1_point_x_y_z_r_g_b_a.html">PointT</a> &gt; &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_file_grabber.html#a89929617bdc7df84486a66041b288db0">operator[]</a> (size_t idx) const =0</td></tr>
<tr class="memdesc:a89929617bdc7df84486a66041b288db0"><td class="mdescLeft">&#160;</td><td class="mdescRight">operator[] Returns the idx-th cloud in the dataset, without bounds checking. Note that in the future, this could easily be modified to do caching  <a href="classpcl_1_1_file_grabber.html#a89929617bdc7df84486a66041b288db0">更多...</a><br /></td></tr>
<tr class="separator:a89929617bdc7df84486a66041b288db0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afff8ca20f22c3e0bd16fe2566de85786"><td class="memItemLeft" align="right" valign="top"><a id="afff8ca20f22c3e0bd16fe2566de85786"></a>
virtual size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_file_grabber.html#afff8ca20f22c3e0bd16fe2566de85786">size</a> () const =0</td></tr>
<tr class="memdesc:afff8ca20f22c3e0bd16fe2566de85786"><td class="mdescLeft">&#160;</td><td class="mdescRight">size Returns the number of clouds currently loaded by the grabber <br /></td></tr>
<tr class="separator:afff8ca20f22c3e0bd16fe2566de85786"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3494d229749ce2a9c5623db7d420a092"><td class="memItemLeft" align="right" valign="top">virtual const boost::shared_ptr&lt; const <a class="el" href="classpcl_1_1_point_cloud.html">pcl::PointCloud</a>&lt; <a class="el" href="structpcl_1_1_point_x_y_z_r_g_b_a.html">PointT</a> &gt; &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_file_grabber.html#a3494d229749ce2a9c5623db7d420a092">at</a> (size_t idx) const</td></tr>
<tr class="memdesc:a3494d229749ce2a9c5623db7d420a092"><td class="mdescLeft">&#160;</td><td class="mdescRight">at Returns the idx-th cloud in the dataset, with bounds checking  <a href="classpcl_1_1_file_grabber.html#a3494d229749ce2a9c5623db7d420a092">更多...</a><br /></td></tr>
<tr class="separator:a3494d229749ce2a9c5623db7d420a092"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><h3>template&lt;typename PointT&gt;<br />
class pcl::FileGrabber&lt; PointT &gt;</h3>

<p><a class="el" href="classpcl_1_1_file_grabber.html" title="FileGrabber provides a container-style interface for grabbers which operate on fixed-size input">FileGrabber</a> provides a container-style interface for grabbers which operate on fixed-size input </p>
<dl class="section author"><dt>作者</dt><dd>Stephen Miller </dd></dl>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="a3494d229749ce2a9c5623db7d420a092"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3494d229749ce2a9c5623db7d420a092">&#9670;&nbsp;</a></span>at()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename PointT &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual const boost::shared_ptr&lt; const <a class="el" href="classpcl_1_1_point_cloud.html">pcl::PointCloud</a>&lt;<a class="el" href="structpcl_1_1_point_x_y_z_r_g_b_a.html">PointT</a>&gt; &gt; <a class="el" href="classpcl_1_1_file_grabber.html">pcl::FileGrabber</a>&lt; <a class="el" href="structpcl_1_1_point_x_y_z_r_g_b_a.html">PointT</a> &gt;::at </td>
          <td>(</td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>idx</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>at Returns the idx-th cloud in the dataset, with bounds checking </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">idx</td><td>The frame to load </td></tr>
  </table>
  </dd>
</dl>
<div class="fragment"><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;    {</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;      <span class="keywordflow">if</span> (idx &gt;= <a class="code" href="classpcl_1_1_file_grabber.html#afff8ca20f22c3e0bd16fe2566de85786">size</a> ())</div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;      {</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;        <span class="comment">// Throw error </span></div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;        <span class="keywordflow">throw</span> <a class="code" href="classpcl_1_1_i_o_exception.html">pcl::IOException</a> (<span class="stringliteral">&quot;[pcl::FileGrabber] Attempted to access element which is out of bounds!&quot;</span>);</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;      }</div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;      <span class="keywordflow">else</span></div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;      {</div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;        <span class="keywordflow">return</span> (<span class="keyword">operator</span>[] (idx));</div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;      }</div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;    }</div>
<div class="ttc" id="aclasspcl_1_1_file_grabber_html_afff8ca20f22c3e0bd16fe2566de85786"><div class="ttname"><a href="classpcl_1_1_file_grabber.html#afff8ca20f22c3e0bd16fe2566de85786">pcl::FileGrabber::size</a></div><div class="ttdeci">virtual size_t size() const =0</div><div class="ttdoc">size Returns the number of clouds currently loaded by the grabber</div></div>
<div class="ttc" id="aclasspcl_1_1_i_o_exception_html"><div class="ttname"><a href="classpcl_1_1_i_o_exception.html">pcl::IOException</a></div><div class="ttdoc">An exception that is thrown during an IO error (typical read/write errors)</div><div class="ttdef"><b>Definition:</b> exceptions.h:180</div></div>
</div><!-- fragment -->
</div>
</div>
<a id="a89929617bdc7df84486a66041b288db0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a89929617bdc7df84486a66041b288db0">&#9670;&nbsp;</a></span>operator[]()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename PointT &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual const boost::shared_ptr&lt; const <a class="el" href="classpcl_1_1_point_cloud.html">pcl::PointCloud</a>&lt;<a class="el" href="structpcl_1_1_point_x_y_z_r_g_b_a.html">PointT</a>&gt; &gt; <a class="el" href="classpcl_1_1_file_grabber.html">pcl::FileGrabber</a>&lt; <a class="el" href="structpcl_1_1_point_x_y_z_r_g_b_a.html">PointT</a> &gt;::operator[] </td>
          <td>(</td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>idx</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>operator[] Returns the idx-th cloud in the dataset, without bounds checking. Note that in the future, this could easily be modified to do caching </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">idx</td><td>The frame to load </td></tr>
  </table>
  </dd>
</dl>

<p>在 <a class="el" href="classpcl_1_1_p_c_d_grabber.html#aaf050a6037b38ef740f3565d33965b1b">pcl::PCDGrabber&lt; PointT &gt;</a> , 以及 <a class="el" href="classpcl_1_1_image_grabber.html#a7528e2376a448989349de681cd13fc46">pcl::ImageGrabber&lt; PointT &gt;</a> 内被实现.</p>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>io/include/pcl/io/<a class="el" href="file__grabber_8h_source.html">file_grabber.h</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><b>pcl</b></li><li class="navelem"><a class="el" href="classpcl_1_1_file_grabber.html">FileGrabber</a></li>
    <li class="footer">制作者 <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
